package com.zd.dao;

import org.apache.ibatis.annotations.Param;

import com.zd.entity.SuccessKilled;

public interface SuccessKillDao {
	/**
	 * 插入购买明细，可过滤重复
	 * @param seckillId
	 * @param userPhone
	 * @return
	 */
	public int insertSuccessKilled(@Param("seckillId") long seckillId,@Param("userPhone") long userPhone);
	/**
	 * 根据id查询successKilled并携带秒杀产品的实体
	 * @param seckillId
	 * @return
	 */
	public SuccessKilled queryByIdWithSeckill(@Param("seckillId") long seckillId,@Param("userPhone") long userPhone);
}
